package com.ruixin.mvc.config;

import com.ruixin.base.factory.Factory;

/**
 * web注入
 */
public class WebRegister {

    //静态资源
    private Factory<String,String> staticFactory = new Factory<>();

    public Factory<String, String> getStaticFactory() {
        return staticFactory;
    }

    public void setStaticFactory(Factory<String, String> staticFactory) {
        this.staticFactory = staticFactory;
    }

    public void registerStatic(String url,String path){
        this.staticFactory.put(url,path);
    }
}
